Search
Other Articles Anywhere questions
Forum

How to use the "total"-tag outside a {foreach} on a repeatable custom field?

Ton van Loon's Avatar Ton van Loon
How do can I display the total number of children of a repeatable custom field outside the {foreach}-loop (and before the display of the loop itself)?

[row:total] only works in the {foreach]-loop
[customfield:total] does not work.
[customfield-total] does not work.
Peter van Westen's Avatar Peter van Westen ADMIN
There isn't a way to do that, just like you can't use the main [total] tag outside the {articles} tags.

What you could do is something like this:
{foreach data="my-customfield" limit="1"}[row:total-no-limit]{/foreach}

However this does not work in the current live version.
It does work with the latest development version:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription